package com.glut.gultguy.controller;


import com.glut.gultguy.entity.Classify;
import com.glut.gultguy.mapper.ClassifyMapper;
import com.glut.gultguy.service.ClassifyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ${author}
 * @since 2022-09-05
 */
@RestController
@RequestMapping("/classify")
public class ClassifyController {

    @Autowired
    private ClassifyService service;

    @Autowired(required = false)
    private ClassifyMapper mapper;

    @GetMapping("/getClassify")
    public List<Classify> getClassify(){
        return service.list();
    }

}

